
/**		
 * 
 *	uk.co.lmfm.guppy.view.components.events.WorkspaceViewEvent
 *	
 *	@version 1.00 | Jan 15, 2010
 *	@author Justin Windle
 *  
 **/
 
package uk.co.lmfm.guppy.view.components.events 
{
	import flash.filesystem.File;
	import flash.events.Event;

	/**
	 * WorkspaceViewEvent
	 */
	public class WorkspaceViewEvent extends Event 
	{
		//	----------------------------------------------------------------
		//	CONSTANTS
		//	----------------------------------------------------------------

		public static const CLONE_WORKSPACE : String = "cloneWorkspace";		public static const CREATE_WORKSPACE : String = "createWorkspace";		public static const REFRESH_WORKSPACES : String = "refreshWorkspaces";		public static const CONFIGURE_WORKSPACE : String = "configureWorkspace";

		//	----------------------------------------------------------------
		//	PUBLIC MEMBERS
		//	----------------------------------------------------------------

		public var workspace : File;		public var workspaceCopy : File;

		//	----------------------------------------------------------------
		//	CONSTRUCTOR
		//	----------------------------------------------------------------

		public function WorkspaceViewEvent(type : String, workspace : File = null, workspaceCopy : File = null, bubbles : Boolean = false, cancelable : Boolean = false)
		{
			super(type, bubbles, cancelable);
			
			this.workspace = workspace;
			this.workspaceCopy = workspaceCopy;
		}

		//	----------------------------------------------------------------
		//	PUBLIC METHODS
		//	----------------------------------------------------------------

		override public function clone() : Event
		{
			return new WorkspaceViewEvent(type, workspace, workspaceCopy, bubbles, cancelable);
		}
	}
}
